<template>
     <div id="app">
        <div style="margin: 1.944444rem auto 0 auto;text-align: center;">
            <img src="/static/image/success.png" style="width:3.981481rem;;border-radius: 100%;margin:0 auto;">
        </div>
        <div style="text-align: center;margin-top: 0.462963rem">
            <p style="font-size:0.518519rem;color:#333333;">{{successType.text1}}</p>
            <p style="font-size:0.333333rem;color:#999999;margin-top: 0.277778rem;">{{successType.text2}}</p>
        </div>
        <div class="weui-btn-area">
            <router-link :to="'/'+successType.route" class="weui-btn tixian-btn">确定</router-link>
        </div>
    </div>
</template>

<script>
import getRequests from '../assets/js/common';
import { MessageBox,Toast } from 'mint-ui';
export default {
  data () {
    return {
      name:'applicationSuccess',
      type:1,
      success:[
          {type:1,text1:'绑定成功',text2:'绑定银行卡成功',route:''},
          {type:2,text1:'申请成功',text2:'具体到账时间请以银行处理时间为准',route:''},
          {type:3,text1:'申请成功',text2:'需要家族管理者同意',route:''},
          {type:4,text1:'申请成功',text2:'需要家族管理者同意才能退出家族',route:''},
      ],
      successType:{}
    }
  },
  mounted() {
    this.type = this.$route.params.type;
    for (let index = 0; index < this.success.length; index++) {
        const element = this.success[index];
        if(this.type === element.type){
            this.successType = element;
        }
    }
  },
  methods:{
     
  }
}

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    #app {
            width: 10rem;
            margin: 0 auto;
        }
</style>
